/* ---------------- Palette ---------------- */
:root {
  --rose-pale: #F8BBD0;
  --bleu-danse: #5C6BC0;
  --gris-doux: #ECECEC;
  --noir-danse: #22223B;
  --blanc: #FFFFFF;
  --font-title: 'Bellefair', serif;
  --font-body: 'Arial', sans-serif;
  --bordeaux: #5a1a48;
  --or: #D4AF37;
  --rose: #F28CA9;
  --anthracite: #2E2E2E;
  --font-title: 'Bellefair', serif;
  --font-body: 'Arial', sans-serif;
}

/* ---------------- Base ---------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background: var(--blanc);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;

}

.title{
  font-family: var(--font-title);
  font-size: 3rem;
  margin-bottom: 8rem;
  color: var(--bordeaux);
}


section {
  margin-top: 5em;
}
/* ---------------- Navbar ---------------- */
.navbar {
  background: var(--bordeaux);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar .logo {
  color: var(--or);
  font-family: var(--font-title);
  font-size: 1.5rem;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--blanc);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--rose);
}
.logo-text {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  color: var(--or);
  font-family: var(--font-title);
  text-decoration: none;
}
/* ---------------- caroussel ---------------- */


.carousel-indicators button {
  background-color: var(--rose) !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(80%) sepia(20%) saturate(500%) hue-rotate(300deg);
}

.carousel-item-img {
  width: 90vh;
  object-fit: cover;
  object-position: center;
  height: 75vh;
  /* hauteur fixe pour desktop */
}

.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.carousel-fade .carousel-item.active {
  opacity: 1;
  position: relative;
}

.carousel-caption h5 {
  font-size: 1.75rem;
  font-weight: bold;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.carousel-caption p {
  font-size: 1.5rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

#logo-img {
  height: 55vh;
  object-fit: contain

}


/* Adaptation responsive pour mobile */
@media (max-width: 768px) {
  .carousel-item img {
    height: 250px;
    /* moins haut sur téléphone */
  }

  .carousel-caption h5 {
    font-size: 1.2rem;
  }

  .carousel-caption p {
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .carousel-item img {
    height: 200px;
    /* très compact sur petits téléphones */
  }

  .carousel-caption {
    bottom: 10px;
  }

  .carousel-caption h5 {
    font-size: 1rem;
  }

  .carousel-caption p {
    display: none;
    /* cacher le texte long sur petit écran */
  }
}

.carousel {
  background: white;
}

.carousel-cell {
  width: 70%;
  height: 200px;
  /* flex-box, center image in cell */
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-align-items: center;
  align-items: center;
}

.carousel-cell img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  /* dim unselected */
  opacity: 0.7;
  -webkit-transform: scale(0.85);
  transform: scale(0.85);
  -webkit-filter: blur(5px);
  filter: blur(5px);
  -webkit-transition: opacity 0.3s, -webkit-transform 0.3s, transform 0.3s, -webkit-filter 0.3s, filter 0.3s;
  transition: opacity 0.3s, transform 0.3s, filter 0.3s;
}

/* brighten selected image */
.carousel-cell.is-selected img {
  opacity: 1;
  -webkit-transform: scale(1);
  transform: scale(1);
  -webkit-filter: none;
  filter: none;
}

@media screen and (min-width: 768px) {
  .carousel-cell {
    height: 400px;
  }
}

@media screen and (min-width: 960px) {
  .carousel-cell {
    width: 60%;
  }
}
/* ---------------- A propos ---------------- */

/* ---------------- Cards ---------------- */
.prof-cards {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 20px;
}

.prof-card {
  width: 450px;       /* largeur fixe */
  height: 650px;      /* hauteur fixe */
  perspective: 1000px; 
  flex-shrink: 0;     /* empêche de rétrécir */
  
}

.prof-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.prof-card:hover .prof-card-inner {
  transform: rotateY(180deg);
}

.prof-card-front, .prof-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: center;
  padding: 15px;
}

/* Face avant */
.prof-card-front {
  background: #fff;
}
.prof-card-front img {
  width: 100%;
  height: 480px; /* image prend de la place */
  object-fit: cover;
  border-bottom: 2px solid #ddd;
  margin-bottom: 15px;
  
}

/* Face arrière */
.prof-card-back {
  background: #f4f4f4;
  transform: rotateY(180deg);
  font-size: 1rem;
  line-height: 1.5;
  overflow-y: auto;
  text-align: center;
}
.title-card {
  font-family: var(--font-title);
  font-size: 1.8rem;
  color: var(--rose);
  margin-bottom: 5px;
}
.text-card {
  margin-top: 15px;
  text-align: center;
  padding: 0 10px;
}
/* ---------------- Boutons ---------------- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: var(--rose);
  color: var(--blanc);
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s;
}

.btn:hover {
  background: var(--bordeaux);
}

/* ---------------- contact ---------------- */
.container-map {
  gap: 50px;  
  flex-wrap: wrap;
  margin-top: 2rem;
  margin-bottom: 4rem;
}
.contact-info {
  background: var(--gris-doux);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  
}
.title-contact {
  font-family: var(--font-title);
  font-size: 2rem;
  color: var(--rose);
  margin-bottom: 1rem;
}
.adress-info {
  margin: 0.5rem 0;
  font-size: 1.3rem;
  color: var(--anthracite);
  font-family: var(--font-title)
}
.map{
  border-radius: 10px;
  width: 100%;
  max-width: 500px;
  height: 350px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  
}
/* ---------------- Footer ---------------- */
.footer {
  background: var(--anthracite);
  color: var(--blanc);
  text-align: center;
  padding: 2rem 0;
}
.final-text {
  margin-top: 3rem;
  font-size: 0.9rem;
  color: var(--gris-doux);
  line-height: 0
}